package com.trainingcloud.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author xxx
 * @since 2022-09-20
 */
@TableName("discuss_comment")
@ApiModel(value = "DiscussComment对象", description = "评论表")
public class MyDiscussComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("评论id")
    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    @ApiModelProperty("关联讨论id")
    private Integer relationDiscussId;

    @ApiModelProperty("评论内容")
    private String ccontent;

    @ApiModelProperty("回复的人的id")
    private Integer replyPeopleId;

    @ApiModelProperty("回复的人的姓名")
    private String userParentNick;

    @ApiModelProperty("回复的人的头像")
    private String userParentContent;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date ccreateTime;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getRelationDiscussId() {
        return relationDiscussId;
    }

    public void setRelationDiscussId(Integer relationDiscussId) {
        this.relationDiscussId = relationDiscussId;
    }

    public String getCcontent() {
        return ccontent;
    }

    public void setCcontent(String ccontent) {
        this.ccontent = ccontent;
    }

    public Integer getReplyPeopleId() {
        return replyPeopleId;
    }

    public void setReplyPeopleId(Integer replyPeopleId) {
        this.replyPeopleId = replyPeopleId;
    }

    public String getUserParentNick() {
        return userParentNick;
    }

    public void setUserParentNick(String userParentNick) {
        this.userParentNick = userParentNick;
    }

    public String getUserParentContent() {
        return userParentContent;
    }

    public void setUserParentContent(String userParentContent) {
        this.userParentContent = userParentContent;
    }

    public Date getCcreateTime() {
        return ccreateTime;
    }

    public void setCcreateTime(Date ccreateTime) {
        this.ccreateTime = ccreateTime;
    }

    @Override
    public String toString() {
        return "MyDiscussComment{" +
                "cid=" + cid +
                ", relationDiscussId=" + relationDiscussId +
                ", ccontent='" + ccontent + '\'' +
                ", replyPeopleId=" + replyPeopleId +
                ", userParentNick='" + userParentNick + '\'' +
                ", userParentContent='" + userParentContent + '\'' +
                ", ccreateTime=" + ccreateTime +
                '}';
    }
}
